<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>将二进制 IPTC 块解析为单个标记</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.iptcembed.html">iptcembed</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.jpeg2wbmp.html">jpeg2wbmp</a></div>
 <div class="up"><a href="ref.image.html">GD and Image 函数</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="function.iptcparse" class="refentry">
   <div class="refnamediv">
    <h1 class="refname">iptcparse</h1>
    <p class="verinfo">(PHP 4, PHP 5)</p><p class="refpurpose"><span class="refname">iptcparse</span> &mdash; <span class="dc-title">
     将二进制 IPTC 块解析为单个标记
    </span></p>

   </div>
 <div class="refsect1 description" id="refsect1-function.iptcparse-description">
  <h3 class="title">说明</h3>
    <div class="methodsynopsis dc-description">
     <span class="type">array</span> <span class="methodname"><strong>iptcparse</strong></span>
      ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$iptcblock</code></span>
     )</div>

    <p class="para rdfs-comment">
     本函数将一个二进制的 <a href="http://www.iptc.org/" class="link external">&raquo;&nbsp;IPTC</a>
     块解析为单个的标记。
    </p>
   </div>

 <div class="refsect1 parameters" id="refsect1-function.iptcparse-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>

    
     <dt>
<em><code class="parameter">iptcblock</code></em></dt>

     <dd>

      <p class="para">
       二进制的 IPTC 块。
      </p>
     </dd>

    
   </dl>

  </p>
 </div>

 <div class="refsect1 returnvalues" id="refsect1-function.iptcparse-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   返回一个数组，用 tagmarker 作为索引，以其值为值。如果出错或未发现 IPTC 数据则返回 <strong><code>FALSE</code></strong>。
  </p>
 </div>

 <div class="refsect1 examples" id="refsect1-function.iptcparse-examples">
  <h3 class="title">范例</h3>
  <p class="para">
   <div class="example" id="example-3204">
    <p><strong>Example #1 iptcparse() used together with <span class="function"><a href="function.getimagesize.html" class="function">getimagesize()</a></span></strong></p>
    <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000">
<span style="color: #0000BB">&lt;?php<br />$size&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">getimagesize</span><span style="color: #007700">(</span><span style="color: #DD0000">'./test.jpg'</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$info</span><span style="color: #007700">);<br />if(isset(</span><span style="color: #0000BB">$info</span><span style="color: #007700">[</span><span style="color: #DD0000">'APP13'</span><span style="color: #007700">]))<br />{<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$iptc&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">iptcparse</span><span style="color: #007700">(</span><span style="color: #0000BB">$info</span><span style="color: #007700">[</span><span style="color: #DD0000">'APP13'</span><span style="color: #007700">]);<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">var_dump</span><span style="color: #007700">(</span><span style="color: #0000BB">$iptc</span><span style="color: #007700">);<br />}<br /></span><span style="color: #0000BB">?&gt;</span>
</span>
</code></div>
    </div>

   </div>
  </p>
 </div>


 <div class="refsect1 notes" id="refsect1-function.iptcparse-notes">
  <h3 class="title">注释</h3>
  <blockquote class="note"><p><strong class="note">Note</strong>: <p class="para">此函数不需要 GD 图象库。</p></p></blockquote>
 </div>

  </div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.iptcembed.html">iptcembed</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.jpeg2wbmp.html">jpeg2wbmp</a></div>
 <div class="up"><a href="ref.image.html">GD and Image 函数</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
